#!/bin/bash

# 定义要重启的容器名称或容器ID
CONTAINER_NAME_OR_ID="1Panel-php8-Xt2F"

# 首先停止容器
docker stop $CONTAINER_NAME_OR_ID

# 然后启动容器
docker start $CONTAINER_NAME_OR_ID

echo "Docker容器 $CONTAINER_NAME_OR_ID 已经重启。"